package com.app.model;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("lm_task")
@JsonInclude(JsonInclude.Include.NON_NULL)

public class TaskModel {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String supervisor;//监督人
    private String name;//名称
    private String personName;
    private String departmentId;
    @TableField(exist = false)
    private String departmentText;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp taskTime;//进度要求时间
    private Integer warnTime;//提醒时间
    private String progressRequirements;//进度条
    private String progress;//进展情况
    private Timestamp createTime;
    private Timestamp updateTime;
    @TableField(exist = false)
    private String content;
    @TableField(exist = false)
    private List<String> department;
    //    @ExcelProperty(index = 0)
    private Integer number;  //序号
}
